<template>
  <div class="car-alarm-wrapper d-flex jc-around ai-center">
    <MyImage width="246px" height="148px" :src="cardInfo.snap_path" />
    <div class="content flex-1 d-flex flex-column jc-center ai-start ml-20">
      <div class="mb-20">{{ $t("channelNumber") }}:{{ cardInfo.channel }}</div>
      <div class="mb-20">
        {{ $t("channelName") }}:{{ cardInfo.camera_name }}
      </div>
      <div>{{ cardInfo.trigger }}</div>
    </div>
    <div class="alarm-info">
      {{ cardInfo.events_type | formatEventsType }}
    </div>
  </div>
</template>

<script>
export default {
  props: {
    cardInfo: {
      type: Object,
      default: () => {
        return {
        };
      },
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.car-alarm-wrapper {
  height: 148px;
  position: relative;
  .content {
    height: 100%;
  }
  .alarm-info {
    position: absolute;
    text-align: center;
    line-height: 29px;
    color: #fff;
    right: 10px;
    top: 10px;
    box-shadow: 0px 6px 12px 0px rgba(255, 136, 0, 0.101961);
    background-image: linear-gradient(
      315deg,
      rgba(255, 136, 0, 1) 0,
      rgba(252, 183, 80, 1) 100%
    );
    border-radius: 0px 10px 0px 0px;
    height: 29px;
    width: 114px;
  }
}
</style>
